/**
 * 
 */
package com.p2p.base.result;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ruiqi
 *
 */
public class BaseResult {

	boolean isSuccess = false;
	
	String resultCode;
	
	List<String> msgs;

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public List<String> getMsgs() {
		return msgs;
	}

	public void setMsgs(List<String> msgs) {
		this.msgs = msgs;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}
	
	public void addMsg(String msg) {
		if(msgs == null){
			msgs = new ArrayList<String>();
		}
		msgs.add(msg);
	}

	@Override
	public String toString() {
		return "BaseResult [isSuccess=" + isSuccess + ", resultCode="
				+ resultCode + ", msgs=" + msgs + "]";
	}
	
	
}
